//
//  TouchView.m
//  03-UIResponder
//
//  Created by Snow on 16/7/18.
//  Copyright © 2016年 Snow. All rights reserved.
//

#import "TouchView.h"

@implementation TouchView
//继承于UIResponder
//APPDelegate UIView UIViewController
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    [super touchesBegan:touches withEvent:event];
    NSLog(@"self.view%@", self.nextResponder);
    NSLog(@"vc%@", self.nextResponder.nextResponder);
    NSLog(@"window%@", self.nextResponder.nextResponder.nextResponder);
    NSLog(@"Aplication%@", self.nextResponder.nextResponder.nextResponder.nextResponder);
    NSLog(@"Appdelegate%@", self.nextResponder.nextResponder.nextResponder.nextResponder.nextResponder);
    NSLog(@"00%@", self.nextResponder.nextResponder.nextResponder.nextResponder.nextResponder.nextResponder);

}
- (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
//    NSLog(@"%@---%s", [self class], __FUNCTION__);

}
- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
//    NSLog(@"%@---%s", [self class], __FUNCTION__);
}

@end
